package Code.Day5_20240922.com.dx.day05;

/**
 * @ClassName Test01
 * @Description TODO:
 * @Author 12994
 * @Date 2024/9/22 15:53
 * @Version 1.0
 **/
public class Test01 {
    public static void main(String[] args) {
        Dogs wangCai = new Dogs("旺财", "黑色", 6, "金毛");
        System.out.println(wangCai);
        wangCai.run();
        System.out.println(wangCai.reName("二旺"));
        wangCai.run();

        Cats jiafei = new Cats("加菲", "橘色", 6, 100);
        System.out.println(jiafei);
        jiafei.run();
        System.out.println(jiafei.reName("加肥"));
        jiafei.run();
    }
}
